package top.lingkang.potato.network.notoken;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Query;
import com.dtflys.forest.annotation.Request;
import top.lingkang.potato.config.ServerConfig;
import top.lingkang.potato.dto.ResponseResult;

/**
 * @author lingkang
 * @date 2021/9/19 12:46
 * @description
 */
@BaseRequest(baseURL = ServerConfig.baseServerUrl)
public interface AccountClient {

    @Request(url = "account/login_token")
    ResponseResult login_token(@Query("token") String token);

    @Request(url = "/account/login")
    ResponseResult login(@Query("username") String username, @Query("password") String password);

}
